package com.windowes.weichang.controller.platform;

import com.windowes.weichang.common.ServerResponse;
import com.windowes.weichang.pojo.DemandProducingStep;
import com.windowes.weichang.service.DemandProducingStepService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

/***
 *
 * @author: yangqing
 * @email: qing.yang@bangdao-tech.com
 * @createTime: 2018/8/5 下午12:27
 * @description:
 *
 **/
@RestController
@RequestMapping("producing/step")
public class DemandProducingStepController {

    @Autowired
    DemandProducingStepService stepService;


    @GetMapping("list")
    public ServerResponse list() {
        return stepService.list();
    }

    @PostMapping("addOrUpdate")
    public ServerResponse addOrUpdate(@RequestBody DemandProducingStep step) {
        return stepService.addOrUpdate(step);
    }

}
